<div class="main-wrap">

    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="#">常用操作</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="#">物流商户管理</a><span class="crumb-step">&gt;</span><span>新增/修改商户</span></div>
    </div>
    <div class="result-wrap">
        <div class="result-content">
            <form action="{:U('Express/set')}" method="post" id="myform" name="myform" onsubmit="return check();">
                <input type="hidden" name="id" value="{$data.id}">
                <input type="hidden" name="act" value="{$act}">
                <table class="insert-tab" width="100%">
                    <tbody>
                    <tr>
                        <th width="120"><i class="require-red">*</i>物流名称：</th>
                        <td>
                            <input class="common-text required" name="title" size="30" value="{$data.title}" type="text">
                            <span class="notice red hiden" for="title">请填写物流名称</span>
                        </td>
                    </tr>
                    <tr>
                        <th width="120"><i class="require-red">*</i>联系人：</th>
                        <td>
                            <input class="common-text required"  name="user" size="30" value="{$data.user}" type="text">
                            <span class="notice red hiden" for="user">请填写联系人</span>
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>联系方式：</th>
                        <td>
                            <input class="common-text" name="contact" size="30" type="text" value="{$data.contact}">
                            <span class="notice red hiden" for="contact">请填写联系方式</span>
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>价格：</th>
                        <td>
                            <input class="common-text" name="price" size="30" type="text" value="{$data.price}">
                            <span class="notice red hiden" for="contact">请填写价格</span>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                            <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>
    </div>

</div>
<script type="text/javascript">

    function check()
    {
        var title = $('input[name=title]').val(),
                user = $('input[name=user]').val(),
                contact = $('input[name=contact]').val(),
                price = $('input[name=price]').val(),
                act = $('input[name=act]').val();
        var error = true;
        if(title=='')
        {
            showMsg($('span[for=title]'),true,'');error=false;
        }
        if(user=='')
        {
            showMsg($('span[for=user]'),true,'');error=false;
        }
        if(contact=='')
        {
            showMsg($('span[for=contact]'),true,'');error=false;
        }
        if(price=='')
        {
            showMsg($('span[for=price]'),true,'');error=false;
        }

        return error;
    }

    /*window.setTimeOut(function(){
     $('.notice').hide();
     },3000);*/
</script>